{include common/header}
{include common/left}
<div id="content">
   <ul class="breadcrumb">
    <li><a href="__ROOT__"><i class="icon-home"></i>首页</a> <span class="divider">/</span></li>
    <li class="active">属性管理 <span class="divider">/</span></li>
    <li class="active">{$title}列表</li>
   </ul>
  <div class="container-fluid">
    <div class="row-fluid">
      <div class="span12">
        <div class="widget-box">
          <div class="widget-title"> 
            <h5><span class="icon"> <i class="icon-align-justify"></i> </span>{$title}列表</h5>
          </div>
          <div class="widget-content nopadding">
          <a href="{url( 'property/add', array('model'=>$model) )}" class="btn btn-primary" style="margin-bottom:10px;">添加{$title}</a>
          <form id="estateform" action="{url( 'property/del', array('model'=>$model) )}" method="post" class="form-horizontal">
            <table class="table table-bordered table-striped table-hover">
					<thead>
						<tr>
							<th><input type="checkbox" id="all" /></th>
							<th>名称</th>
							<th>排序</th>							
							<th>是否显示</th>
							<th>删除</th>
							<th>修改</th>														
						</tr>
					</thead>
					<tbody>
					{loop $list $property}
						<tr>
						<td><input type="checkbox" name="id[]" value="{$property['id']}" /></td>
							<td>{$property['name']}</td>
							<td>{$property['sort']}</td>
							<td>{if $property['display']}<a href="{url( 'property/searchdisplay', array('model'=>$model,'id'=>$property['id'],'display'=>0) )}">是</a>{else}<a href="{url( 'property/searchdisplay', array('model'=>$model,'id'=>$property['id'],'display'=>1) )}">否</a>{/if}</td>
							<td><a href="{url( 'property/del', array('model'=>$model,'id'=>$property['id']) )}">删除</a></td>											
							<td><a href="{url( 'property/edit', array('model'=>$model,'id'=>$property['id']) )}">修改</a></td>						
						</tr>
				    {/loop}
					</tbody>
					<tfoot>
						<tr>
							<td colspan="4"><input class="btn btn-danger" type="submit" value="删除" ></td>							
						</tr>
					</tfoot>
				</table>	
				</form>
          </div>
        </div>
        
      </div>
    </div>
  </div>
</div>
{include common/footer}